package com.fosu.web.controller;

import com.fosu.common.ResponseResult;
import com.fosu.domain.Campus;
import com.fosu.domain.ProductCategories;
import com.fosu.service.CampusService;
import com.fosu.service.CategoriesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * Desription
 *
 * @author manno
 * @date 2020/10/22
 */
@RestController
@RequestMapping("categories")
public class CategoriesController
{
    @Autowired
    CategoriesService categoriesService;


    @GetMapping("/getAllCategories")
    ResponseResult getAllCategories( HttpServletResponse resp) throws Exception
    {
        return categoriesService.findAll(resp);
    }
}
